package com.qianyu.project.core.context.handler;

import java.util.Map;

/**
 * @author gs
 * @date create in 2021/1/8 21:16
 */
public interface FlowHandlerFactory {

    /**
     * description: 获取处理器 <br/>
     * author: gs   <br/>
     * date: 2021/1/8 <br/>
     * params: [name] <br/>
     * return: com.qianyu.project.core.context.handler.FlowFinishedHandler
     */
    FlowFinishedHandler getHandler(String type);

    /**
     * description: 添加处理器 <br/>
     * author: gs   <br/>
     * date: 2021/1/8 <br/>
     * params: [] <br/>
     * return: void
     */
    void pushHandler(String key,Class type);

    /**
     * description: 获取流程处理器工厂上下文 <br/>
     * author: gs   <br/>
     * date: 2021/1/8 <br/>
     * params: [] <br/>
     * return: java.util.Map<java.lang.String,java.lang.String>
     */
    Map<String, FlowFinishedHandler> getContext();
}
